package com.iphone.xkyy.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ikun
 * @since 2022-12-08
 */
@TableName("t_msgtemp")
public class Msgtemp extends Model<Msgtemp> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 模板名称
     */
    private String tempName;
    /**
     * 消息名称
     */
    private String msgName;
    /**
     * 发布方式：1PUSH、2短信
     */
    private Integer pushType;
    /**
     * 发送到平台
     */
    private Integer platform;
    /**
     * 通知类型：1重要通知、2通知、3代办
     */
    private Integer msgType;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建人
     */
    private String createUser;
    /**
     * 时间周期：每月、每周、每日
     */
    private Date timeType;
    /**
     * 开始年月日
     */
    private Date startTime;
    /**
     * 结束年月日
     */
    private Date endTime;
    /**
     * 时间段
     */
    private Date partTime;
    /**
     * 标题
     */
    private String title;
    /**
     * 简介
     */
    private String summary;
    /**
     * 内容
     */
    private String text;
    /**
     * 是否启用：0未启用，1启用
     */
    private Integer status;
    /**
     * 发布范围：1所有门店，2直营门店，3加盟门店
     */
    private Integer range;
    /**
     * 公司编号
     */
    private Integer companyNo;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTempName() {
        return tempName;
    }

    public void setTempName(String tempName) {
        this.tempName = tempName;
    }

    public String getMsgName() {
        return msgName;
    }

    public void setMsgName(String msgName) {
        this.msgName = msgName;
    }

    public Integer getPushType() {
        return pushType;
    }

    public void setPushType(Integer pushType) {
        this.pushType = pushType;
    }

    public Integer getPlatform() {
        return platform;
    }

    public void setPlatform(Integer platform) {
        this.platform = platform;
    }

    public Integer getMsgType() {
        return msgType;
    }

    public void setMsgType(Integer msgType) {
        this.msgType = msgType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getTimeType() {
        return timeType;
    }

    public void setTimeType(Date timeType) {
        this.timeType = timeType;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getPartTime() {
        return partTime;
    }

    public void setPartTime(Date partTime) {
        this.partTime = partTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getRange() {
        return range;
    }

    public void setRange(Integer range) {
        this.range = range;
    }

    public Integer getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(Integer companyNo) {
        this.companyNo = companyNo;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Msgtemp{" +
        ", id=" + id +
        ", tempName=" + tempName +
        ", msgName=" + msgName +
        ", pushType=" + pushType +
        ", platform=" + platform +
        ", msgType=" + msgType +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", timeType=" + timeType +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", partTime=" + partTime +
        ", title=" + title +
        ", summary=" + summary +
        ", text=" + text +
        ", status=" + status +
        ", range=" + range +
        ", companyNo=" + companyNo +
        "}";
    }
}
